  <!-- 非中华人民共和国大陆地区和非企业法人人工认证是同一页面 -->
<template>
  <div>
    <ContainerTitle text="企业基本信息"></ContainerTitle>
    <!-- <div class="titleDiv">
      <div>企业基本信息</div>
    </div> -->
    <div class="msgDiv">
      <el-descriptions class="margin-top" :column="2" :size="size" border v-if="companyInfo.clueType==2">
        <el-descriptions-item>
          <template slot="label">企业名称(中英文对照)</template>
          {{companyInfo.companyName}}
        </el-descriptions-item>
      </el-descriptions>
      <el-descriptions class="margin-top" :column="2" :size="size" border style="border-bottom:0px">
        <el-descriptions-item>
          <template slot="label">经办人姓名</template>
          {{companyInfo.handlerName}}
        </el-descriptions-item>
      </el-descriptions>
      <el-descriptions class="margin-top" :column="2" :size="size" border v-if="companyInfo.clueType==2">
        <el-descriptions-item>
          <template slot="label">经办人证件类型</template>
          {{handlerCertificatesType}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人证件号码</template>
          {{companyInfo.handlerCertificatesNumber}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人电子邮箱</template>
          {{companyInfo.handlerMailbox}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人联系电话</template>
          {{companyInfo.handlerPhone ? companyInfo.handlerPhone : "—"}}
        </el-descriptions-item>
      </el-descriptions>
      <el-descriptions class="margin-top" :column="2" :size="size" border v-if="companyInfo.clueType==3">
        <el-descriptions-item>
          <template slot="label">经办人联系电话</template>
          {{companyInfo.handlerPhone ? companyInfo.handlerPhone : "—"}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人证件类型</template>
          {{handlerCertificatesType}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人性别</template>
          {{companyInfo.handlerSex == 1 ? "男" : "女"}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">经办人证件号码</template>
          {{companyInfo.handlerCertificatesNumber ? companyInfo.handlerCertificatesNumber : "—"}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>
<script>
import {mapState} from 'vuex'
export default {
  data() {
    return {
      size: '',
      handlerCertificatesType:''
    }
  },
  computed: {
    ...mapState(['companyInfo']),
  },
  methods:{
  	async	getFormOptions() {
      // 调用公共方法中的查询字典表
      this.getDictList(this,`sys_user_sex,legal_representative_type`).then(res => {
        this.DocumentType = res.legal_representative_type
        this.sys_user_sex = res.sys_user_sex
        this.DocumentType.forEach(item => {
          if(item.dictValue == this.companyInfo.handlerCertificatesType) {
            this.handlerCertificatesType = item.dictLabel
          }
        })
      })
    },
  },
  created(){
    this.getFormOptions()
  }
}
</script>
<style lang="scss" scoped>
.layout {
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
  box-sizing: border-box;
}
.breadcrumb {
  width: 1000px;
  margin: 20px 0;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.roomDiv {
  display: flex;
  justify-content: center;
}

.roomDiv .leftDiv {
  width: 200px;
  text-align: left;
}

.roomDiv .rightDiv {
  width: 800px;
  margin-left: 30px;
}
.titleDiv {
  border-bottom: 2px solid #045db9;
  text-align: left;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #045db9;
  margin-bottom: 20px;
}
.msgDiv {
  margin: 40px 0;
}
::v-deep th {
  text-align: right !important;
  font-size: 14px !important;
  color: #333333 !important;
  width: 174px !important;
}
::v-deep td {
  width: 225px !important;
}
</style>